package com.woniuxy.microorderserver.mapper;

import com.woniuxy.microcommonserver.bean.order_caize.OrderInfo;
import com.woniuxy.microcommonserver.pageHelper.PageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OrderMapper {


    /**
     * 根据用户id查询用户所有的订单
     * @param request
     * @param
     * @return
     */
    List<OrderInfo>findOrderAllBySearch(@Param("p")PageRequest request,@Param("o")OrderInfo orderInfo) ;
    /**
     * 根据订单id删除订单
     * @param id
     * @return
     */
    int delOrder(@Param("id") Long id);

    /**
     * 根据订单编号查看订单详情。订单信息。收货人信息
     */
    OrderInfo findOrderByOrderNum(@Param("orderNum") Long orderNum);
}
